import request from '@/utils/request'

// 查询系统附件 附件列表
export function listSysattachments(query) {
  return request({
    url: '/system/sysattachments/list',
    method: 'get',
    params: query
  })
}

// 查询系统附件 附件详细
export function getSysattachments(id) {
  return request({
    url: '/system/sysattachments/' + id,
    method: 'get'
  })
}

// 新增系统附件 附件
export function addSysattachments(data) {
  return request({
    url: '/system/sysattachments',
    method: 'post',
    data: data
  })
}

// 修改系统附件 附件
export function updateSysattachments(data) {
  return request({
    url: '/system/sysattachments',
    method: 'put',
    data: data
  })
}

// 删除系统附件 附件
export function delSysattachments(id) {
  return request({
    url: '/system/sysattachments/' + id,
    method: 'delete'
  })
}

// 导出系统附件 附件
export function exportSysattachments(query) {
  return request({
    url: '/system/sysattachments/export',
    method: 'get',
    params: query
  })
}
